package com.wyg.blog.service.blog;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wyg.blog.model.blog.Comment;
import com.wyg.blog.model.blog.MyComment;

import java.util.List;

public interface CommentService {
    IPage<Comment> selectSomeComments(Page<?> page);

    List<MyComment<Comment>> selectCommentsByBid(Integer bid);

    Comment selectCommentById(Integer id);

    Integer selectCommentCountByBid(Integer id);

    String selectContentById(Integer id);

    boolean insertComment(Comment comment);

    boolean renewCommentState(Integer id, boolean state);

    boolean renewComment(Integer id, String content);

    boolean removeComment(Integer id);

    String selectEmail(Integer id);

    boolean selectState(Integer id);
}
